import React, { useState } from 'react'
import { Row, Col, Button } from 'antd';

const FileListBtn = ({onCreateFile,importFiles}) => {

    return (
        <div className="filelist-button-group">
            <Row align='bottom'>
                <Col span={12}><Button type="primary" block={true} icon='plus-circle' onClick={()=>{onCreateFile('新建文件')}} >新建</Button></Col>
                <Col span={12}><Button type="danger" block={true} icon='file-add' onClick={importFiles}>导入</Button></Col>
            </Row>
        </div>
    )
}

export default FileListBtn